class AudioProfile {
  /// The Constructor for audio profile.
  AudioProfile(this.reqBitrate, this.sampleRate, { this.channelNumber = 1});
  /// The request bitrate.
  final int reqBitrate;
  /// The preferred audio sample rate.
  final int sampleRate;
  /// channelNumber
  final int channelNumber;
  
  @override
  String toString() {
    return "AudioProfile: [${this.sampleRate}Hz,${this.reqBitrate}bps]";
  }

  Map<String, dynamic> toJson() {
    return {
      "reqBitrate": reqBitrate,
      "sampleRate": sampleRate,
      "channelNumber": channelNumber,
    };
  }
}